<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-7-24
 * Time: 下午2:28
 */
/* @var $this yii\web\View */
/**
 * @var \home\models\FormLogin $form_login
 */
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;

$this->title = "登录";
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="site-login">
    <div class="row">
        <div class="col-sm-5">
            <?php $form = ActiveForm::begin(); ?>
            <?=$form->field($form_login, 'name')->textInput(['placeholder' => $form_login->getAttributeLabel('name')]) ?>
            <?=$form->field($form_login, 'password')->passwordInput(['placeholder' => '密码']) ?>
            <?php // echo  $form->field($form_login, 'remember')->checkbox() ?>
            <?= $form->field($form_login, 'code')->widget(\yii\captcha\Captcha::class) ?>
            <?= $form->field($form_login, 'back_url')->hiddenInput()->label(false) ?>
            <div class="form-group">
                <?= Html::submitButton("登录", ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
                <?= Html::resetButton("重置", ['class' => 'btn btn-warning']) ?>
            </div>
            <?php ActiveForm::end(); ?>

            <p>
                <?=Html::a("重新发送激活链接", ['site/resend-active-link-for-email']) ?>
                <?=Html::a("忘记密码/重置密码", ['site/reset-password']) ?>
            </p>
        </div>
    </div>
</div>
